package com.yzd.learnjava.generics;

public class SimpleDogsAndRobots {
	public static void main(String[] args) {
		CommunicateSimply.perform(new PerformingDog());
		CommunicateSimply.perform(new Robot());
	}
}

class CommunicateSimply{
	static void perform(Performs performs) {
		performs.speak();
		performs.sit();
	}
}
